#include<bits/stdc++.h>
using namespace std;
//xor:a^b
int n,m;
int main(){
    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);
    cin>>n>>m;
    for(int i=1;i<=n;i++){
        int ans=n^i;
        cout<<ans<<endl;
    }
    return 0;
}
